<?php
/* @var $this OrderController */
/* @var $model order */

$this->breadcrumbs=array(
	'Orders'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List order', 'url'=>array('index')),
	array('label'=>'Create order', 'url'=>array('create')),
	array('label'=>'Update order', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete order', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage order', 'url'=>array('admin')),
);
?>

<h1 style="color:#707070;margin-left:0px;">View order #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'order_date',
		'order_quantity',
		array(              
            'label'=>'Customer',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->customer['fullname']), array('customer/view','id'=>$model->customer->id)),
        ),
		'order_price',
		array(              
            'label'=>'Product',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->product->fulldesc), array('product/view','id'=>$model->product->id)),
        ),
	),
)); ?>
